package MultiMediaPlayer.Media;


import MultiMediaPlayer.Interface.PlatForm;

//桥接模式，AVI会被AviAdapter适配成MP4
public class AVI implements Media {

    private PlatForm platForm;

    public AVI(PlatForm platForm){
        this.platForm = platForm;
    }

    @Override
    public void play() {
        platForm.decode("AVI");
        System.out.println("正在播放AVI文件");
    }

    @Override
    public String getDescription() {
        return "AVI文件(" + platForm.getDescription() + ")";
    }

    @Override
    public String getName() {
        return "AVI";
    }

}
